package com.stx.test.encapsulation;

/**
 * packageName com.stx.test
 *
 * @author YangYi
 * @className BankAccountDemo
 * @date 2025/9/13
 * @description TODO
 */
public class BankAccountDemo {
    public static void main(String[] args) {
        BankAccount bankAccount = new BankAccount();
        // 不能随意修改自己的余额
        bankAccount.setBalance(10);
        bankAccount.name="张三";
        bankAccount.account="621000012345678913";
        bankAccount.getBankAccountInfo("");
    }
}
